﻿using Microsoft.AspNetCore.Mvc;
using Read.Models;
using Read.Utility;
using System.Collections.Generic;

namespace Read.Web.Api
{
    /// <summary>
    /// 首页API
    /// </summary>
    public class HomeController : ApiBaseApiController
    {
        /// <summary>
        /// 首页接口(Swagger API文档示例)
        /// </summary>
        [Route("Api/Home/Index")]
        [HttpGet]
        public JsonResult Index()
        {
            //throw new System.Exception("Test Api Exception");
            var res = new ResultData<string>()
            {
                Result = true,
                Message = "操作成功",
                Data = "返回的数据",

            };
            return Json(res);
        }
    }
}